home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>3</cardCount>
- <cardID>3048</cardID>
- <listID>4434</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>================================================================
- -- Communication Toolbox Presentation Stacks
- --
- -- Apple Computer, Inc.
- -- Software Development Training
- --
- -- Stacks: Gabriel Acosta
- -- Sources: Inside the Macintosh Communications Toolbox
- -- Alex Kazim, James Beninghaus
- =================================================================
-
- -- ***
- on openStack
- if "Comm Toolbox" is not in the stacksInUse then
- set userLevel to 5
- start using stack "Comm Toolbox"
- reset paint
- initSlides
- else setTheMode
- disItem "Communications Toolbox"
- if short name of this card is "intro" then doIntro
- ----- DEVELOPMENT ONLY ------
- -- feedMenu
- -----------------------------
- end openStack
-
- -- ***
- on initSlides
- setMenus
- travelMenu
- modeMenu
- setTheMode
- end initSlides
-
- -- ***
- on closeStack
- --enaItem "Communications Toolbox"
- end closeStack
-
- -- ***
- on modeMenu
- if "mode" is not in the menus then
- create menu "Mode"
- put "Teacher" into menu "Mode" with menuMessage "setMode 1"
- put "Student" after menu "Mode" with menuMessage "setMode 2"
- if (bottom of cd window) - (top of cd window) is 342
- then set checkMark of menuItem "Student" of menu "mode" to TRUE
- else set checkMark of menuItem "Teacher" of menu "mode" to TRUE
- end if
- end modeMenu
-
- -- ***
- on travelMenu
- if "travel" is not in the menus then
- create menu "Travel"
- put "Communications Toolbox" into menu "Travel" with ¬
- menuMessage "goMenu"
- put "-" after menu "Travel"
- put "Intro to Comm Toolbox" after menu "Travel" with menuMessage "goICTB"
- put "Comm Resource Manager" after menu "Travel" with menuMessage "goCRM"
- put "Connection Manager" after menu "Travel" with menuMessage "goCM"
- put "File Transfer Manager" after menu "Travel" with menuMessage "goFTM"
- put "Terminal Manager" after menu "Travel" with menuMessage "goTM"
- end if
- end travelMenu
-
- -- ***
- on doIntro
- wait 20
- visual dissolve slow
- go next
- wait 20
- visual wipe right
- go next
- end doIntro
-
- -- ***
- on setMenus
- delete menuItem "New Stack..." of menu "File"
- delete menuItem "Save A Copy..." of menu "File"
- delete menuItem 3 of menu "File"
- delete menuItem "Compact Stack" of menu "File"
- delete menuItem "Protect Stack..." of menu "File"
- delete menuItem "Delete Stack..." of menu "File"
- delete menuItem "Page Setup..." of menu "File"
- delete menuItem "Print Field..." of menu "File"
- delete menuItem "Print Report..." of menu "File"
-
- repeat 9
- delete menuItem 7 of menu "Edit"
- end repeat
-
- delete menuItem "Help" of menu "Go"
- delete menuItem "Recent" of menu "Go"
- repeat 5
- delete menuItem 8 of menu "Go"
- end repeat
-
- delete menu "Tools"
- delete menu "Objects"
- delete menu "Font"
- delete menu "Style"
- end setMenus
-
- -- ***
- on quitCommToolbox
- stop using stack "Comm Toolbox"
- reset menubar
- if "mode" is in the menus then delete menu "mode"
- if "travel" is in the menus then delete menu "travel"
- ----- DEVELOPMENT ONLY ------
- --delete menu "CTB"
- -----------------------------
- end quitCommToolbox
-
-
-
- |||||| GENERAL HANDLERS ||||||
- -- ***
- on setMode type
- put rect of cd window into CdRect
- if type = 1 then
- if item 3 of CdRect > 600 then
- put (item 2 of CdRect + 344) into item 4 of CdRect
- else put (item 2 of CdRect + 272) into item 4 of CdRect
- set checkMark of menuItem "Teacher" of menu "mode" to TRUE
- set checkMark of menuItem "Student" of menu "mode" to FALSE
- else if type = 2 then
- if item 3 of CdRect > 600 then
- put (item 2 of CdRect + 432) into item 4 of CdRect
- else put (item 2 of CdRect + 342) into item 4 of CdRect
- set checkMark of menuItem "Student" of menu "mode" to TRUE
- set checkMark of menuItem "Teacher" of menu "mode" to FALSE
- end if
- set rect of cd window to CdRect
- end setMode
-
- -- ***
- on setTheMode
- if checkMark of menuItem "Student" of menu "Mode" is TR